// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import Layout from '@/layout'
import { roterPre } from '@/settings'
const productRouter =
  {
    path: `${roterPre}/reservation`,
    name: 'product',
    component: Layout,
    meta: {
      icon: 'dashboard',
      title: '服务管理'
    },
    alwaysShow: true,
    redirect: 'noRedirect',
    children: [
      {
        path: 'classify',
        name: 'ProductClassify',
        meta: {
          title: '服务分类',
          noCache: true
        },
        component: () => import('@/views/product/productClassify')
      },
      {
        path: 'service',
        name: `ServiceList`,
        meta: {
          title: '服务列表',
          noCache: true
        },
        component: () => import('@/views/reservation/service')
      },

      {
        path: 'order',
        name: `OrderList`,
        meta: {
          title: '预约订单',
          noCache: true
        },
        component: () => import('@/views/reservation/order')
      },

      {
        path: 'comment',
        name: `OrderComment`,
        meta: {
          title: '预约评价',
          noCache: true
        },
        component: () => import('@/views/reservation/comment')
      },


      {
        path: 'service/addService/:id?/:edit?',
        component: () => import('@/views/reservation/service/addService/index'),
        name: 'AddService',
        meta: { title: '服务添加', noCache: true, activeMenu: `${roterPre}/service` },
        hidden: true
      },
    ]
  }

export default productRouter
